<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品列表</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/src/layui.js"></script>
    <script src="/layui/src/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="/js/xadmin.js"></script>
    <link rel="stylesheet" href="/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script type="text/javascript" src="/zTree/js/jquery.ztree.core.js"></script>

    <link rel="stylesheet" href="/operation/css/CommodityManagement.css">


</head>
<body>
<div class="layui-container" id="div_div_id">
    <!--头部-->
    <div class="layui-row" id="row_id">
        <div class="layui-col-xs10 layui-col-sm10 layui-col-md10 layui-col-lg10 OpeHome_1">
            <div id="div_ic"></div>
            <p id="tit_span">商品列表</p>
        </div>
        <div class="layui-col-xs1 layui-col-sm1 layui-col-md1 layui-col-lg1 OpeHome_1">
            <button type="button" class="layui-btn button_1" id="refreshs" onclick="refresh()">
                <i class="layui-icon layui-icon-refresh refresh"></i>刷新
            </button>
        </div>
        <div class="layui-col-xs1 layui-col-sm1 layui-col-md1 layui-col-lg1 OpeHome_1">
            <button type="button" class="layui-btn button_1" id="back" onclick="xadmin.add_tab('返回','/public/System.html')">
                <i class="layui-icon layui-icon-left refresh"></i>返回
            </button>
        </div>
    </div>
    <!--筛选查询-->
    <div class="layui-row" id="row_2">
        <div class="layui-col-xs11 layui-col-sm11 layui-col-md11 layui-col-lg11" id="div_index_title">
            <i class="layui-icon layui-icon-search">筛选查询</i>
        </div>
        <div class="layui-col-xs1 layui-col-sm1 layui-col-md1 layui-col-lg1">
            <button type="button" class="layui-btn layui-btn-sm" id="btn_1" onclick="retrieve()">
                高级检索
            </button>
        </div>
    </div>
    <!--搜索框-->
    <div  id="List_query2">
        <form class="layui-form" action="" id="form_id">
            <div class="layui-form-item" >
                <div class="layui-inline" id="ProName">
                    <label class="layui-form-label List_query2_label">输入搜索：</label>
                    <div class="layui-input-block">
                        <input type="text" name="name1" class="layui-input input_class" placeholder="请输入商品名称"/>
                    </div>
                </div>
                <div class="layui-inline" id="category">
                    <label class="layui-form-label List_query2_label">商品分类：</label>
                    <div class="layui-input-block">
                        <select id="gory" class="gory">
                            <option value=''>请选择商品分类</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline" id="state">
                    <label class="layui-form-label List_query2_label">商品状态：</label>
                    <div class="layui-input-block">
                        <select  id="name3">
                            <option value="">请选择商品状态</option>
                            <option value="1">上架</option>
                            <option value="2">下架</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline" id="ProLabel">
                    <label class="layui-form-label List_query2_label">商品标签：</label>
                    <div class="layui-input-block">
                        <input type="text" name="name4" class="layui-input" placeholder="请输入商品标签" id="name4"/>
                    </div>
                </div>
               <div  class="layui-inline" id="div_2">
                    <button type="button" class="layui-btn layui-btn-sm" id="selProduct" onclick="search()">
                        <i class="layui-icon layui-icon-search" id="btn_icom"></i>搜索
                    </button>
                    <button type="reset" class="layui-btn layui-btn-danger" id="resetBtn">
                        <i class="layui-icon layui-icon-refresh-3" id="btn_icom1"></i>重置
                    </button>
               </div>
            </div>
        </form>
    </div>
    <!--内容-->
    <div class="layui-row" id="div_3">
        <div class="layui-col-xs2 layui-col-sm2 layui-col-md2 layui-col-lg2" >
            <div id="tree">
                <ul id="treeDemo" class="ztree"></ul>
            </div>
        </div>
        <div class="layui-col-xs10 layui-col-sm10 layui-col-md10 layui-col-lg10">
            <div id="div_1">
                <button type="button" class="layui-btn layui-btn-sm" onclick="couImport()" id="daoru">
                    <i class="layui-icon">&#xe62f;</i> 导入
                </button>
                <button class="layui-btn layui-btn-sm" id="add" onclick="productAdd()">
                    <i class="layui-icon">&#xe608;</i> 添加
                </button>
            </div>
            <table id="table_id"></table>
            <!-- 自定义table按钮 -->
            <div class="layui-hide layui-btn-container" id="toolbar_id">
                <div id="div_4">
                    <span><i class="layui-icon">&#xe649;&nbsp;</i>数据列表</span>
                </div>
            </div>
        </div>
    </div>

    <!--获取商品价格（子传父）-->
    <input type="hidden" name="name5" >
    <!--获取商品编号（子传父）-->
    <input type="hidden" id="product_code" >
    <!--获取商品id-->
    <input type="hidden" id="product_id" >
    <!--高级检索-->
    <input type="hidden" name="productCode1" > <!--编号-->
    <input type="hidden" name="productName1" > <!--名称-->
    <input type="hidden" name="currentpriceProduct1" > <!--价格-->
    <input type="hidden" name="categoryId1" > <!--分类-->
    <input type="hidden" name="state1" > <!--状态-->
    <input type="hidden" name="productLabel1" > <!--标签-->
</div>
<!--zTree-->
<div id="rMenu">
    <ul>
        <li id="m_add">增加节点</li>
        <li id="m_del" >删除节点</li>
        <li id="m_check" >修改节点</li>
    </ul>
</div>

<script type="text/javascript" src="/operation/js/CommodityManagement.js"></script>

</body>
</html>